<?php for ($i=1 ;$i<6;$i++) { ?>
  <li class="list-group-item chapteritem oneline">
    <a href="./course_chapter_video_detail.php">
        <span><?php echo $i; ?></span>&nbsp;&nbsp; <span class="ion-ios-paper-outline"></span> <span class="ion-ios-videocam-outline"></span> 
        <span class="oneline"><?php echo $i.'章节名称章节'; ?></span>
    </a>
  </li>
<?php } ?>